﻿<%@ Page Language="C#" MasterPageFile="~/Shared/EOS.Master" AutoEventWireup="true"
    CodeBehind="DanhSachDongHoTheoLoai.aspx.cs" Inherits="EOSCRM.Web.Forms.DongHo.BaoCao.DanhSachDongHoTheoLoai" %>

<%@ Import Namespace="EOSCRM.Web.Common" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
 
<asp:Content ID="head" ContentPlaceHolderID="headCPH" runat="server">

    <script type="text/javascript">
        function CheckFormReport() {
           openWaitingDialog();
           unblockWaitingDialog();

           __doPostBack('<%= CommonFunc.UniqueIDWithDollars(btnBaoCao) %>', '');
       }
    
    </script>

</asp:Content>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div class="crmcontainer">
        <table class="crmtable">
            <tbody>
                <tr>
                    <td class="crmcell right">
                        Từ ngày
                    </td>
                    <td class="crmcell">
                        <div class="left">
                            <asp:TextBox ID="txtTuNgay"  tag="datevn" runat="server" Width="75px" />
                        </div>
                        
                        <div class="left">
                            <div class="right">
                                Đến ngày</div>
                        </div>
                        <div class="left">
                            <asp:TextBox ID="txtDenNgay"  tag="datevn" runat="server" Width="75px" Height="16px" />
                        </div>
                        
                    </td>
                </tr>
                <tr>
                    <td class="crmcell right">
                        Loại đồng hồ
                    </td>
                    <td class="crmcell">
                        <div class="left">
                            <asp:DropDownList ID="ddlLOAIDH" runat="server" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="crmcell right"> Tùy chọn
                    </td>
                    <td>
                        <div class="left">
                             <asp:CheckBox ID="checkPhuong" runat="server" Text="  Báo cáo theo phường" 
                                 AutoPostBack="True" oncheckedchanged="checkPhuong_CheckedChanged" />
                        </div>
                        <div class="left">
                             <asp:CheckBox ID="checkDuong" runat="server" Text="  Báo cáo theo đường" 
                                 AutoPostBack="True" oncheckedchanged="checkDuong_CheckedChanged" />
                        </div>
                        <div class="left">
                             <asp:UpdatePanel ID="Upoptionreport" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                         <asp:DropDownList Width="200px" runat="server" ID="ddlOptions"></asp:DropDownList> 
                                    </ContentTemplate>
                             </asp:UpdatePanel>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="crmcell right">
                        Người lập
                    </td>
                    <td class="crmcell">
                        <div class="left">
                            <asp:TextBox ID="txtNguoiLap" runat="server" />
                        </div>
                        
                        
                    </td>
                </tr>
                <tr>
                    <td class="crmcell right">
                    </td>
                    <td class="crmcell">
                        <div class="left">
                            <asp:Button ID="btnBaoCao" runat="server" OnClick="btnBaoCao_Click" OnClientClick="return CheckFormReport();"
                                CssClass="report" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <br />
    <div class="crmcontainer" id="divreport" runat="server" visible="False">
        <CR:CrystalReportViewer ID="rpViewer" runat="server" PrintMode="ActiveX" AutoDataBind="true"
            DisplayGroupTree="False" />
    </div>
</asp:Content>
